home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d3
/
amac36.arc
/
SRL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-03-16
|
912b
|
45 lines
@echo off
rem SRL.BAT for NON-case sensitive search/LOAD March 7, 1991
rem Loads only files containing search text, no replacement made
rem Requires FGREP.COM
rem Requires INPUT.COM
rem "Enter" without any search text terminates batch file
CLS
IF not "%1" == "" IF "%2" == "" goto NOINPUT
INPUT Search Text=/b
IF Errorlevel=1 goto END
SET FGS=%ANS%
GOTO SEARCH
:NOINPUT
SET FGS=%1
:SEARCH
ECHO
ECHO Searching For Files Containing '%FGS%' , NO Replacement .....
ECHO *** NON-CASE SENSITIVE SEARCH/LOAD FILES CONTAINING SEARCH TEXT ***
ECHO
BREAK on
if not exist SRCH-FG.LST GOTO NEXT1
GOTO NEXT2
:NEXT1
FGREP -f /%FGS%/ *.* >c:$.ql
:NEXT2
if exist SRCH-FG.LST GOTO NEXT3
GOTO NEXT4
:NEXT3
FGREP -f /%FGS%/ @SRCH-FG.LST >c:$.ql
:NEXT4
BREAK off
ECHO
COPY c:$.ql c:!
Q.EXE c:! /Esrl.mac /LSRCH24.mac
ECHO
:END